<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/4/16
 * Time: 14:47
 */

namespace app\api\controller;
use app\common\controller\Api;
use think\Config as ConfigModel;

class Config extends Api
{
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';

    public function index()
    {
        $config = ConfigModel::get('site');

        $data = [];
        $data['name'] = $config['name'];
        $data['keyWord'] = $config['keyWord'];
        $data['mobile'] = $config['mobile'];
        $data['describe'] = $config['describe'];

        $this->success('',$data);
    }
}